//
//  AFWithToken.m
//  WULIHH
//
//  Created by tang on 16/4/13.
//  Copyright © 2016年 tang. All rights reserved.
//

#import "AFWithToken.h"
#import "UserInfoModel.h"
#import "Header.h"




@implementation AFWithToken

+ (AFHTTPSessionManager *)shareInter
{
    AFHTTPSessionManager *manager = [AFHTTPSessionManager manager];
    manager.responseSerializer = [AFHTTPResponseSerializer serializer];
    manager.requestSerializer = [AFJSONRequestSerializer serializer];
    
    [manager.requestSerializer setValue:[UserInfoModel tokenString] forHTTPHeaderField:@"X-AUTH-TOKEN"];
    [manager.requestSerializer setValue:appVersion forHTTPHeaderField:@"X-APP-VERSON"];
    [manager.requestSerializer setValue:typetext forHTTPHeaderField:@"Content-Type"];
    return manager;
    
}



@end
